package com.example.communitypro.service;

import com.example.communitypro.pojo.Notification;
import com.example.communitypro.util.result.Result;

import java.util.List;

public interface NotificationService {

    Result addNotification(Notification record);

    Result dropNotification(int notification_id);

    Result modifyNotification(Notification record);

    Result queryNotification(int notification_id);

    Result selectAll();

    /**
     *
     * @param userNo
     * @return
     */
    Result queryNotificationByUserNo(Integer userNo);

    /**
     *
     * @param notificationId
     * @return
     */
    Result updateIsReadByUserNo(Integer notificationId);

    Result addNotificationPro(Notification notification1, String postTitle);
    List<Notification> queryNotificationByType(Integer type);
}
